<template>
  <ul>
    <li v-for="(item, index) in list" :key="item.id">
      {{ index + 1 }}===={{ item.name }} <button @click="ff(item.id)">删除</button>
    </li>
  </ul>
</template>
<script>
export default {
  name: '',
  props: {
    list: {
      type: Array,
      default: () => []
    }

  },
  data () {
    return {

    }
  },
  created () {
  },
  computed: {
  },
  methods: {
    ff(id){
      this.$emit('sc',id)
    }
  }
}
</script>
<style lang='less'  scoped>
// .Todomain {
//   background-color: yellow;
// }
</style>
